import httpInstance from '@/utils/http.js';

/**
 * 
 * @returns 轮播图
 */
export function getBannerAPI(params={}){
  const {distributionSite='1'}=params;
  return httpInstance({
    url: '/home/banner',
    method: 'get',
    params:{
      distributionSite
    }
  })
}


export function findNewAPI(){
  return httpInstance({
    url: '/home/new',
    method: 'get',
  })
}

/**
 * 获得所有商品模块
 * @returns 
 */
export const getGoodsApI=()=>{
  return httpInstance({
    url: '/home/goods',
  })
}